package com.mtaite.study.mybatis.init;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;

import java.util.Arrays;

public class InitMethodBean {

    @Autowired
    private Environment environment;
 
    public void init() {

        System.out.println("执行初始化InitMethodBean-->"+Arrays.asList(environment.getDefaultProfiles()));
    }
}